import request from '@/utils/request'

export function getQuestionsHotList() {
    return request({
        url: '/web/question/hot-list',
        method: 'get'
    })
}
export function addQuestion(data, typeId) {
    return request({
        url: '/web/publish/question',
        method: 'post',
        data: data,
        params: {
            typeId: typeId
        }
    })
}